package com.seeyon.apps.hems.kit;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

public class ResultKit {
    public static String getResult(String type, String msg, Object o){
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("type", type);
        map.put("msg", msg);
        map.put("data", o);
        return JSON.toJSONString(map);
    }
}
